package com.sjq.supplier.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (Goods)实体类
 *
 * @author makejava
 * @since 2024-01-02 14:54:50
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Goods implements Serializable {
    private static final long serialVersionUID = 594712261353193132L;
    /**
     * 商品id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 供应商id
     */
    private Integer supplierid;
    /**
     * 商品名称
     */
    private String title;
    /**
     * 类型id
     */
    private Integer typeid;
    /**
     * 商品图
     */
    private String img;
    /**
     * 商品描述
     */
    @TableField(value = "`describe`")
    private String describe;
    /**
     * 商品价格
     */
    private BigDecimal price;
    /**
     * 商品库存
     */
    private Integer stock;
    /**
     * 1有效2无效
     */
    private Integer isvalid;


}
